/*
 * @Author: 码上talk|RC/3189482282@qq.com
 * @Date: 2021-06-22 14:30:48
 * @LastEditTime: 2021-12-06 09:31:01
 * @LastEditors: 码上talk|RC
 * @Description: 
 * @FilePath: /ma-portal/vue.config.js
 */
let path = require('path');
let vars = path.resolve(__dirname, 'common/less/index.less')
module.exports = {
  css: {
    loaderOptions: {
      less: {
        globalVars: {
          'hack': `true; @import "${vars}"`
        }
      }
    }
  },
  configureWebpack: {
    resolve: {
      alias: {
        vant: path.join(__dirname, 'wxcomponents/vant'),
        axqc: path.join(__dirname, 'components')
      }
    },
    optimization: {
      minimize: true
    }
  }
}